package au.com.handsunited.dao.hibernate;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import au.com.handsunited.dao.MessageDAO;
import au.com.handsunited.model.BaseEntity;
import au.com.handsunited.model.message.Message;
import au.com.handsunited.model.message.MessageBoard;

/**
 * @author arunda
 *
 */
public class MessageDAOHibernate extends GenericDAOHibernate<Message, Long> implements MessageDAO {

	private static Logger logger = LoggerFactory.getLogger(MessageDAOHibernate.class);

	/**
	 *
	 */
	public MessageDAOHibernate() {
		super();
	}

	/**
	 * @see au.com.handsunited.dao.impl.MessageDAO#findAllMessagesByPoster(au.com.handsunited.model.BaseEntity)
	 */
	@Override
	public List<Message> findAllMessagesByPoster(BaseEntity poster) {
		// TODO Implement method
		return null;
	}


	/**
	 * @see au.com.handsunited.dao.MessageDAO#updateMessageBoard(au.com.handsunited.model.message.MessageBoard)
	 */
	@Override
	public MessageBoard updateMessageBoard(MessageBoard messageBoard) {

		messageBoard = (MessageBoard)getHibernateTemplate().merge(messageBoard);



		return messageBoard;
	}





}
